import chap2._
import org.scalatest.FunSuite

class Chap2Suit extends  FunSuite {
  test("practice 2.1") {
    assert(chap2.fib(0) == 0)
    assert(chap2.fib(1) == 1)
    assert(chap2.fib(2) == 1)
    assert(chap2.fib(3) == 2)
    assert(chap2.fib(4) == 3)
    assert(chap2.fib(5) == 5)
    assert(chap2.fib(6) == 8)
  }
}